package com.rui.mediator.model;

/**
 * @Description: 租客
 * @Author: ZhangRui
 * @Date: 2023/3/3 16:41
 * @Version: 1.0
 */
public class Tenant extends Person {

    public Tenant(String name, MediatorCompany mediatorCompany) {
        super(name, mediatorCompany);
    }

    public void connection(String message) {
        mediatorCompany.connection(this, message);
    }

    public void getMessage(String message) {
        System.out.println("租客" + name + "获取到的信息:" + message);
    }
}
